import fetch from '@/util/fetch'
// queryOrders
export function list_get(options) {
  return fetch({
    url: 'backend/order/list',
    method: 'get',
    headers: options && options.headers ? options.headers : {},
    data: (options && options.data) || {}
  })
}

// refundOrder
export function refund_post(options) {
  return fetch({
    url: 'backend/order/refund',
    method: 'post',
    headers: { 'Content-Type': 'application/json', ...(options && options.headers ? options.headers : {}) },
    data: (options && options.data) || {}
  })
}
